﻿
	using System; 
	using System.Collections;
	using System.Collections.Generic ;
	using System.Runtime.Serialization;

namespace UFIDA.U9.Cust.HWProject.CreateAPBillHead.APBil
{
	/// <summary>
	/// 应付单表头 缺省DTO 
	/// 
	/// </summary>
	[DataContract(Name = "UFIDA.U9.Cust.HWProject.CreateAPBillHead.APBil.APbilHeadData", Namespace = "http://www.UFIDA.org/EntityData",IsReference=true)]	
	[Serializable]
    [KnownType("GetKnownTypes")]
	public partial class APbilHeadData : UFSoft.UBF.Business.DataTransObjectBase
	{

	    public static IList<Type> GetKnownTypes()
        {
            IList<Type> knownTypes = new List<Type>();
            
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                                        knownTypes.Add(typeof(List<UFIDA.U9.Cust.HWProject.CreateAPBillHead.APBil.APbilLineData>));
                        
                        
                        
            
                knownTypes.Add(typeof(UFSoft.UBF.Util.Data.MultiLangDataDict));
            return knownTypes;
        }
		/// <summary>
		/// Default Constructor
		/// </summary>
		public APbilHeadData()
		{
			initData() ;
		}
		private void initData()
		{
			//设置默认值
	     			
	     			
	     			
	     			
	     			
	     							SysVersion= 0; 			     			
	     			
	     			
	     			
	     			
	     			
	     			
	     			
	     			
	     			
	     			
	     			
	     			
	     			
	     							IsSuccess=false; 
	     							OrderStatus= 0; 			     			


			//设置组合的集合属性为List<>对象. -目前直接在属性上处理.
			
			//调用默认值初始化服务进行配置方式初始化
			UFSoft.UBF.Service.DTOService.InitConfigDefault(this);
		}		
		[System.Runtime.Serialization.OnDeserializing]
        internal void OnDeserializing(System.Runtime.Serialization.StreamingContext context)
        {
			 initData();
        }
        
		#region System Fields
		///<summary>
		/// 实体类型. 
		/// </summary>
		[DataMember(IsRequired=false)]
		public override string SysEntityType
		{
			get { return "UFIDA.U9.Cust.HWProject.CreateAPBillHead.APBil.APbilHead" ;}
		}
		#endregion


		
		#region Properties Inner Component
	        					/// <summary>
		/// 应付单表行
		/// 应付单表头.Misc.应付单表行
		/// </summary>
		[DataMember(IsRequired=false)]
		private List<UFIDA.U9.Cust.HWProject.CreateAPBillHead.APBil.APbilLineData> m_aPbilLine;
		public List<UFIDA.U9.Cust.HWProject.CreateAPBillHead.APBil.APbilLineData> APbilLine
		{
			get	
			{	
				if (m_aPbilLine == null)
				{
					List<UFIDA.U9.Cust.HWProject.CreateAPBillHead.APBil.APbilLineData> m_list = new List<UFIDA.U9.Cust.HWProject.CreateAPBillHead.APBil.APbilLineData>() ;
					m_aPbilLine = m_list;
				}
				return m_aPbilLine ;
			}
			set	
			{	
				m_aPbilLine = value ;
			}
		}		

			        					/// <summary>
		/// 生单状态
		/// 应付单表头.Misc.生单状态
		/// </summary>
		[DataMember(IsRequired=false)]
		private System.Int32 m_orderStatus;
		public System.Int32 OrderStatus
		{
			get	
			{	
				return m_orderStatus ;
			}
			set	
			{	
				m_orderStatus = value ;
			}
		}		

			
		#endregion	

		#region Properties Outer Component
		
				/// <summary>
		/// ID
		/// 应付单表头.Key.ID
		/// </summary>
		[DataMember(IsRequired=false)]
		private System.Int64 m_iD ;
		public System.Int64 ID
		{
			get	
			{	
				return m_iD  ;
			}
			set	
			{	
				m_iD = value ;	
			}
		}
		

				/// <summary>
		/// 创建时间
		/// 应付单表头.Sys.创建时间
		/// </summary>
		[DataMember(IsRequired=false)]
		private System.DateTime m_createdOn ;
		public System.DateTime CreatedOn
		{
			get	
			{	
				return m_createdOn  ;
			}
			set	
			{	
				m_createdOn = value ;	
			}
		}
		

				/// <summary>
		/// 创建人
		/// 应付单表头.Sys.创建人
		/// </summary>
		[DataMember(IsRequired=false)]
		private System.String m_createdBy ;
		public System.String CreatedBy
		{
			get	
			{	
				return m_createdBy  ;
			}
			set	
			{	
				m_createdBy = value ;	
			}
		}
		

				/// <summary>
		/// 修改时间
		/// 应付单表头.Sys.修改时间
		/// </summary>
		[DataMember(IsRequired=false)]
		private System.DateTime m_modifiedOn ;
		public System.DateTime ModifiedOn
		{
			get	
			{	
				return m_modifiedOn  ;
			}
			set	
			{	
				m_modifiedOn = value ;	
			}
		}
		

				/// <summary>
		/// 修改人
		/// 应付单表头.Sys.修改人
		/// </summary>
		[DataMember(IsRequired=false)]
		private System.String m_modifiedBy ;
		public System.String ModifiedBy
		{
			get	
			{	
				return m_modifiedBy  ;
			}
			set	
			{	
				m_modifiedBy = value ;	
			}
		}
		

				/// <summary>
		/// 事务版本
		/// 应付单表头.Sys.事务版本
		/// </summary>
		[DataMember(IsRequired=false)]
		private System.Int64 m_sysVersion ;
		public System.Int64 SysVersion
		{
			get	
			{	
				return m_sysVersion  ;
			}
			set	
			{	
				m_sysVersion = value ;	
			}
		}
		

				/// <summary>
		/// 组织
		/// 应付单表头.Misc.组织
		/// </summary>
		[DataMember(IsRequired=false)]
		private System.String m_org ;
		public System.String Org
		{
			get	
			{	
				return m_org  ;
			}
			set	
			{	
				m_org = value ;	
			}
		}
		

				/// <summary>
		/// 应付单单号
		/// 应付单表头.Misc.应付单单号
		/// </summary>
		[DataMember(IsRequired=false)]
		private System.String m_docNo ;
		public System.String DocNo
		{
			get	
			{	
				return m_docNo  ;
			}
			set	
			{	
				m_docNo = value ;	
			}
		}
		

				/// <summary>
		/// 立账依据
		/// 应付单表头.Misc.立账依据
		/// </summary>
		[DataMember(IsRequired=false)]
		private System.String m_accrueBy ;
		public System.String AccrueBy
		{
			get	
			{	
				return m_accrueBy  ;
			}
			set	
			{	
				m_accrueBy = value ;	
			}
		}
		

				/// <summary>
		/// 来源单号
		/// 应付单表头.Misc.来源单号
		/// </summary>
		[DataMember(IsRequired=false)]
		private System.String m_srcDocNo ;
		public System.String SrcDocNo
		{
			get	
			{	
				return m_srcDocNo  ;
			}
			set	
			{	
				m_srcDocNo = value ;	
			}
		}
		

				/// <summary>
		/// 核算币种
		/// 应付单表头.Misc.核算币种
		/// </summary>
		[DataMember(IsRequired=false)]
		private System.String m_aC ;
		public System.String AC
		{
			get	
			{	
				return m_aC  ;
			}
			set	
			{	
				m_aC = value ;	
			}
		}
		

				/// <summary>
		/// 采购订单类型
		/// 应付单表头.Misc.采购订单类型
		/// </summary>
		[DataMember(IsRequired=false)]
		private System.String m_docType ;
		public System.String DocType
		{
			get	
			{	
				return m_docType  ;
			}
			set	
			{	
				m_docType = value ;	
			}
		}
		

				/// <summary>
		/// 发票号
		/// 应付单表头.Misc.发票号
		/// </summary>
		[DataMember(IsRequired=false)]
		private System.String m_invoiceNum ;
		public System.String InvoiceNum
		{
			get	
			{	
				return m_invoiceNum  ;
			}
			set	
			{	
				m_invoiceNum = value ;	
			}
		}
		

				/// <summary>
		/// 发票日期
		/// 应付单表头.Misc.发票日期
		/// </summary>
		[DataMember(IsRequired=false)]
		private System.String m_invoiceDate ;
		public System.String InvoiceDate
		{
			get	
			{	
				return m_invoiceDate  ;
			}
			set	
			{	
				m_invoiceDate = value ;	
			}
		}
		

				/// <summary>
		/// 付款供应商
		/// 应付单表头.Misc.付款供应商
		/// </summary>
		[DataMember(IsRequired=false)]
		private System.String m_paySupp ;
		public System.String PaySupp
		{
			get	
			{	
				return m_paySupp  ;
			}
			set	
			{	
				m_paySupp = value ;	
			}
		}
		

				/// <summary>
		/// 立账供应商
		/// 应付单表头.Misc.立账供应商
		/// </summary>
		[DataMember(IsRequired=false)]
		private System.String m_supplierCode ;
		public System.String SupplierCode
		{
			get	
			{	
				return m_supplierCode  ;
			}
			set	
			{	
				m_supplierCode = value ;	
			}
		}
		

				/// <summary>
		/// 业务日期
		/// 应付单表头.Misc.业务日期
		/// </summary>
		[DataMember(IsRequired=false)]
		private System.String m_businessDate ;
		public System.String BusinessDate
		{
			get	
			{	
				return m_businessDate  ;
			}
			set	
			{	
				m_businessDate = value ;	
			}
		}
		

				/// <summary>
		/// 立账日期
		/// 应付单表头.Misc.立账日期
		/// </summary>
		[DataMember(IsRequired=false)]
		private System.String m_accrueDate ;
		public System.String AccrueDate
		{
			get	
			{	
				return m_accrueDate  ;
			}
			set	
			{	
				m_accrueDate = value ;	
			}
		}
		

				/// <summary>
		/// 对方单据号
		/// 应付单表头.Misc.对方单据号
		/// </summary>
		[DataMember(IsRequired=false)]
		private System.String m_srcSystemType ;
		public System.String SrcSystemType
		{
			get	
			{	
				return m_srcSystemType  ;
			}
			set	
			{	
				m_srcSystemType = value ;	
			}
		}
		

				/// <summary>
		/// 是否推送成功
		/// 应付单表头.Misc.是否推送成功
		/// </summary>
		[DataMember(IsRequired=false)]
		private System.Boolean m_isSuccess ;
		public System.Boolean IsSuccess
		{
			get	
			{	
				return m_isSuccess  ;
			}
			set	
			{	
				m_isSuccess = value ;	
			}
		}
		

				/// <summary>
		/// 错误信息
		/// 应付单表头.Misc.错误信息
		/// </summary>
		[DataMember(IsRequired=false)]
		private System.String m_erroMsg ;
		public System.String ErroMsg
		{
			get	
			{	
				return m_erroMsg  ;
			}
			set	
			{	
				m_erroMsg = value ;	
			}
		}
		
		#endregion	

		#region Multi_Fields
																							
		#endregion 		
	}	

}

